<?php
namespace app\api\controller;
use app\common\model\User;
use app\common\model\ShopConfig;
use app\api\logic\ArticleLogic;
use Exception;
use think\Request;

use app\api\validate\Cart as CartValidate;

class ArticleController extends ApiBase
{
    protected $authExcept = [
        'lists'
    ];
   
    public function lists()
    {
        $get = $this->request->post();
        $user_id =$this->uid??0;
        $goods_list = ArticleLogic::lists($user_id,$get,$this->page,$this->limit);
        return success($goods_list);
    }


    public function detail()
    {
        $get = $this->request->post();
        $user_id =$this->uid??0;
        $article_detail = ArticleLogic::getArticleDetail($user_id,$get);
        return success($article_detail);
    }
}